package com.erp.domain;

import com.erp.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author:lxs
 * @CreateTime: 2025-09-02
 * @Description:供应商实体类
 */

public class Supplier {

    /** 分页参数 */
    private Integer pageNum;
    private Integer pageSize;
    /** 供应商ID */
    private Long supplierId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 供应商联系人 */
    @Excel(name = "供应商联系人")
    private String contactPerson;

    /** 供应商联系电话 */
    @Excel(name = "供应商联系电话")
    private String contactPhone;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 是否启用(0=终止合作/1=有效) */
    @Excel(name = "是否启用(0=终止合作/1=有效)")
    private Integer isActive;
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginCreatedAt;
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endCreatedAt;

    @Override
    public String toString() {
        return "Supplier{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", contactPerson='" + contactPerson + '\'' +
                ", contactPhone='" + contactPhone + '\'' +
                ", createdAt=" + createdAt +
                ", isActive=" + isActive +
                '}';
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
    public Date getBeginCreatedAt() {
        return beginCreatedAt;
    }

    public void setBeginCreatedAt(Date beginCreatedAt) {
        this.beginCreatedAt = beginCreatedAt;
    }

    public Date getEndCreatedAt() {
        return endCreatedAt;
    }

    public void setEndCreatedAt(Date endCreatedAt) {
        this.endCreatedAt = endCreatedAt;
    }
}
